<template>
  <view>
    <SearchList :goods_list="goodsList.goods"></SearchList>
  </view>
</template>

<script>
import SearchList from '@/components/SearchList.vue'
export default {
  components: { SearchList },
  data() {
    return {
      goodsList: [],
    }
  },
  methods: {
    async getGoodsListFn(cid) {
      const res = await this.$u.api.getGoodsListAPI({ cid })
      // console.log(res)
      this.goodsList = res
    },
  },
  onLoad({ id }) {
    // console.log(id)
    this.getGoodsListFn(id)
  },
}
</script>

<style lang="scss">
</style>
